package com.sasis.service.impl;
import java.util.List;

import com.sasis.dao.RoleFuncRefDAO;
import com.sasis.model.RoleFuncRefInfo;
import com.sasis.service.RoleFuncInfoService;
import com.sasis.util.PageList;
import com.sasis.util.PageRequest;
public class RoleFuncInfoServiceImpl extends BaseManager implements RoleFuncInfoService{
	
private RoleFuncRefDAO roleFuncRefDAO;
	
	public RoleFuncRefDAO getFuncListDao() {
		return roleFuncRefDAO;
	}
	
	public void setRoleFuncRefDAO(RoleFuncRefDAO roleFuncRefDAO) {
		this.roleFuncRefDAO=roleFuncRefDAO;
	}

	public int deleteRefByPrimaryKey(RoleFuncRefInfo roleFuncRefInfo) {
		// TODO Auto-generated method stub
		return roleFuncRefDAO.deleteRefByPrimaryKey(roleFuncRefInfo);
		//return 0;
	}

	public int deleteRolByPrimaryKey(RoleFuncRefInfo roleFuncRefInfo) {
		// TODO Auto-generated method stub
		return  roleFuncRefDAO.deleteRolByPrimaryKey(roleFuncRefInfo);
		//return 0;
	}

	public int insertRole(RoleFuncRefInfo roleFuncRefInfo) {
		// TODO Auto-generated method stub
		return roleFuncRefDAO.insertRole(roleFuncRefInfo);
		//return 0;
	}

	public int insertRoleRef(RoleFuncRefInfo roleFuncRefInfo) {
		// TODO Auto-generated method stub
		return roleFuncRefDAO.insertRoleRef(roleFuncRefInfo);
		//return 0;
	}

	public RoleFuncRefInfo searchByPrimaryKey(RoleFuncRefInfo roleFuncRefInfo) {
		// TODO Auto-generated method stub
		return roleFuncRefDAO.searchByPrimaryKey(roleFuncRefInfo);
		//return null;
	}

	public RoleFuncRefInfo selectByPrimaryKey(RoleFuncRefInfo roleFuncRefInfo) {
		// TODO Auto-generated method stub
		System.out.println("......RoleFuncInfoServiceImpl......");
		return roleFuncRefDAO.selectByPrimaryKey(roleFuncRefInfo);
		//return null;
	}

	public List selectRef() {
		// TODO Auto-generated method stub
		return roleFuncRefDAO.selectRef();
		//return null;
	}

	public List selectRol() {
		// TODO Auto-generated method stub
		return roleFuncRefDAO.selectRol();
		//return null;
	}

	public int updateByPrimaryKey(RoleFuncRefInfo roleFuncRefInfo) {
		// TODO Auto-generated method stub
		return roleFuncRefDAO.updateByPrimaryKey(roleFuncRefInfo);
		//return 0;
	}

	public List searchByRoleName(RoleFuncRefInfo roleFuncRefInfo) {
		return roleFuncRefDAO.searchByRoleName(roleFuncRefInfo);
	}
	
	public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
		return roleFuncRefDAO.queryForPageList(listStatementId,   parameterObject, pageRequest);
	}

	//<!--add by kellen get exist role by its name-->
	public RoleFuncRefInfo srchRolByName(RoleFuncRefInfo record){
		return roleFuncRefDAO.srchRolByName(record);
	}
}
